Numerical Representations as Purely Functional Data Structures: a New Approach
نویسندگان
چکیده
This paper is concerned with design, implementation and verification of persistent purely functional data structures which are motivated by the representation of natural numbers using positional number systems. A new implementation of random-access list based on redundant segmented binary numbers is described. It uses 4 digits and an invariant which guarantees constant worst-case bounds for cons, head, and tail list operations as well as logarithmic time for lookup and update. The relationship of random-access list with positional number system is formalized and benefits of this analogy are demonstrated.
منابع مشابه
Numerical Study of Progressive Collapse in Framed Structures: A New Approach for Dynamic Column Removal (TECHNICAL NOTE)
Progressive collapse is a situation where local failure of a primary structural component leads to the collapse of adjoining members which, in turn, leads to additional collapse. Hence, the total damage is disproportionate to the original cause. The most common local failure in framed structure is assumed to be column failure. In this paper, a new approach for dynamic column removal in framed s...
متن کاملA Universal Investigation of $n$-representations of $n$-quivers
noindent We have two goals in this paper. First, we investigate and construct cofree coalgebras over $n$-representations of quivers, limits and colimits of $n$-representations of quivers, and limits and colimits of coalgebras in the monoidal categories of $n$-representations of quivers. Second, for any given quivers $mathit{Q}_1$,$mathit{Q}_2$,..., $mathit{Q}_n$, we construct a new quiver $math...
متن کاملA New Stability Approach using Probabilistic Profile along Direction of Excavation
Estimation of the possible instability that may be encountered in the excavation slope(s) during the planning and application steps of the rock excavation processes is an important issue in geoengineering. In this paper, a modelling method is presented for assessing the probability of wedge failure involving new permanent or temporary slope(s) along the planned excavation dir...
متن کاملNumerical Modelling of the Segmental Lining of Underground Structures
There are several methods for analysing the behaviour of underground structures under different loading conditions. Most of these methods have many simplifications; therefore, in some cases, the results are too conservative and a very high safety factor, usually of more than 2 is needed. On the other hand, for stability analysis and the designing of support systems, these methods consider segme...
متن کاملMergeable persistent data structures
Irmin is an OCaml library to design purely functional data structures that can be persisted on disk and be merged and synchronized efficiently. In this paper, we focus on the merge aspect of the library and present two data structures built on top of Irmin: (i) queues and (ii) ropes that extend the corresponding purely functional data structures with a 3-way merge operation. We provide early th...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Informatica, Lith. Acad. Sci.
دوره 13 شماره
صفحات -
تاریخ انتشار 2002